/*
 * ACC_MAG_ADDR.h
 *
 * Created: 3/17/2012 1:42:58 PM
 *  Author: Unithra.C
 */ 
/* MACROS */
#define ACC_ADD           0x32
#define ACC_READADD       0x33
#define ACC_WRITEADD      0x32

#define MAG_ADD           0x3C
#define MAG_READADD       0x3D           //0x3D
#define MAG_WRITEADD      0x3C       //0x3C

#define WRITE    0
#define READ     1
// Reg address
#define CTRL_REG1_A        0x20


#define MR_REG_M       0x02

/*prototypes*/
unsigned char ReadByte(unsigned char Device_addr,unsigned char Reg_Addr);